package com.flower.admin.system.domain;

import com.flower.admin.core.enums.StatusEnum;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.*;

/**
 * @author 小懒虫
 * @date 2018/8/14
 */
@Getter
@Setter
public class Menu implements Serializable {
    private Long id;
    private Long pid;
    private String pids;
    private String title;
    private String url;
    private String icon;
    private Byte type;
    private Integer sort;
    private String remark;
    private Date createDate;
    private Date updateDate;
    private User createBy;
    private User updateBy;
    private Byte status = StatusEnum.OK.getCode();
    private Set<Role> roles = new HashSet<>(0);

    private Map<Long,Menu> children = new HashMap<>();
}
